package com.lagou.edu.service;

import com.lagou.edu.fallback.UserFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "lagou-service-user", fallback = UserFallback.class, path = "/user")
public interface UserService {

    @GetMapping("/validToken/{token}")
    Boolean validToken(@PathVariable(value = "token",required = false) String token);

}
